<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:cby="http:/www.lifesting.com/jsf">

<ui:composition template="/tpl.xhtml">

	<ui:define name="pageTitle">表格展示</ui:define>
	<ui:define name="pageHeader">国家</ui:define>
	<ui:define name="body">

		<h:form>
			<h:panelGrid columns="1">
				<h:message for="mytable" />
			</h:panelGrid>
			<cby:rns text="页面设置" tableFor="mytable" />
			<cby:filter text="过滤策略" tableFor="mytable" />
			<cby:delete tableFor="mytable" />
			<cby:table id="mytable" var="rec" checkable="true" idField="code"
				bean="Country">
				<cby:column field="name" sortable="true" filterable="true"
					width="200" value="名称">
					<h:outputText value="#{rec.wrapped.name}"></h:outputText>
				</cby:column>
				<cby:column field="region" sortable="true" filterable="false"
					width="100" value="区域">
					<h:outputText value="#{rec.wrapped.region}"></h:outputText>
				</cby:column>
				<cby:column field="surfaceArea" sortable="false" filterable="true"
					width="150" value="表面积">
					<h:outputText value="#{rec.wrapped.surfaceArea}"></h:outputText>
				</cby:column>
				<cby:column field="population" sortable="true" filterable="true"
					width="100" value="人口">
					<h:outputText value="#{rec.wrapped.population}"></h:outputText>
				</cby:column>
				<cby:ds />
			</cby:table>
		</h:form>
	</ui:define>
</ui:composition>

</html>